import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import axios from 'axios'


// 导入全局样式表
import './assets/css/global.css'

axios.defaults.baseURL = 'http://39.100.38.230:8086/'
Vue.config.productionTip = false


Vue.prototype.$http = axios,

    router.afterEach((to, from, next) => {
        window,
        scrollTo(0, 0)
    })

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')